var notification=null;function window_load(C,A){C.title=LP.lpgs("Generate Secure Password");C.documentElement.getButton("accept").setAttribute("label",LP.lpgs("Copy"));C.documentElement.getButton("cancel").setAttribute("label",LP.lpgs("Close"));C.documentElement.getButton("extra2").setAttribute("label",LP.lpgs("Generate"));
LP.sr(C,"lpgenpwadv","label","Show Advanced Options");LP.sr(C,"lengthlabel","value","PasswordLength");LP.sr(C,"lpgenpwspecial","label","Special");LP.sr(C,"lpgenpwmindigitslabel","value","MinimumDigitCount");LP.sr(C,"lpgenpwambig","label","Avoid Ambiguous Characters");LP.sr(C,"lpgenpwreqevery","label","Require Every Character Type");
var B=window.arguments;if(B&&B.length>0){notification=B[0]}if(notification){document.getElementById("LPGenPW").getButton("accept").setAttribute("label",LP.lpgs("Accept"));document.getElementById("LPGenPW").getButton("cancel").setAttribute("label",LP.lpgs("Cancel"))}read_prefs();fix_fields();generate_click();
var E=document.getElementById("lpgenpwmindigits");var C=document.getElementById("lpgenpwambig");var D=document.getElementById("lpgenpwreqevery");if(G.checked||B.checked||H.checked||A.checked){document.getElementById("lpgenpwlen").disabled=false}else{document.getElementById("lpgenpwlen").disabled=true